package com.example.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

/**
 * 仓库配置类
 * 明确区分Elasticsearch和MongoDB仓库
 * 
 */
@Configuration
@EnableElasticsearchRepositories(
    basePackages = "com.example.repository.es"
)
@EnableMongoRepositories(
    basePackages = "com.example.repository.mongo"
)
public class RepositoryConfig {
    // 配置类，无需额外方法
}